import http from '../http'
//获取初始页面条数数据
const tableDatas = (page) => http({
    url: '/getTable',
    method: 'get',
    params: page
})
//获取总条数
const tableLength = (page) => http({
    url: '/getTableLength',
    method: 'get',
    params: page
})
//获取总数据
const setSize = (page) => http({
    url: '/setSize',
    method: 'post',
    data: { page }
})
//时间搜索
const getTime = (page) => http({
    url: '/getTime',
    method: 'post',
    data: page
})
//导出新增表格数据
const addTable = (page) => http({
    url: "/addTable",
    method: 'get',
    params: page
})
//请求充值详情数据
const setDetails = (page) => http({
    url: "/setDetails",
    method: 'post',
    data: { id: page }
})
//添加备注
const steNode = (page) => http({
    url: '/node',
    method: 'post',
    data: page
})
//获取退款记录,及page改变
const refund = (page) => http({
    url: '/refund',
    method: 'get',
    params: page
})
//获取总条数和最大页码
const refundPage = (page) => http({
    url: '/refundPage',
    method: 'get',
    params: page
})

//搜索框搜索时
const setTkSize = (page) => http({
    url: '/setTkSize',
    method: 'post',
    data: { text: page }
})
//时间搜索2
const getTime1 = (page) => http({
    url: '/getTime1',
    method: 'post',
    data: page
})

//请求退款详情页
const setPefund = (page) => http({
    url: "/setPefund",
    method: 'post',
    data: { id: page }
})
//退款备注
const steNodes = (page) => http({
    url: '/nodes',
    method: 'post',
    data: page
})
export { tableDatas, tableLength, setSize, getTime, addTable, setDetails, steNode, refund, refundPage, setTkSize, getTime1, setPefund, steNodes }